import { createRouter, createWebHashHistory } from "vue-router";

const router = createRouter({
    history: createWebHashHistory(),
    routes: [
        {
            path: '/',
            redirect: '/home'
        },
        {
            name: 'Home',
            path: '/home',
            component: () => import('@/components/Home.vue')
        },
        {
            name: 'Map',
            path: '/map',
            component: () => import('@/components/Map.vue')
        },
        {
            name: 'GeoMap',
            path: '/geoMap',
            component: () => import('@/components/GeoJson.vue')
        },
        {
            name: 'MapDemo',
            path: '/mapDemo',
            component: () => import('@/components/MapDemo.vue')
        }
    ]
})

export default router;